#ifndef IMAGESET_H
#define IMAGESET_H

#include <stdio.h>
#include <stdint.h>

#include "image.h"

typedef struct {
	uint8_t r, g, b;
	char* name;
} Color;

typedef struct {
	Color color[256];
	int n_images;
	Image** images;
} Imageset;

extern char* unused;

Imageset* imageset_new();
void imageset_setcolor(Imageset* is, uint8_t color,
		uint8_t r, uint8_t g, uint8_t b, char* name);
Image* imageset_addimage(Imageset* is, uint16_t w, uint16_t h, char* name);
Imageset* imageset_input(FILE* f); // in loader.c
int imageset_deleteimage(Imageset* is, uint16_t n);
void imageset_output(Imageset* is, FILE* f);
void imageset_delete(Imageset* is);

#endif
